<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>小说网</title>
<link rel="stylesheet" href="/bookstore/static/css/bootstrap.min.css">
<style type="text/css">
	li{
		float:left;
	}
</style>
</head>
<body>
	<div class="container">
		<div class="row">
			<div class="col-md-6 col-md-offset-1 text-right">
				<h2>小说网</h2>
			</div>
			<div class="col-md-5 text-right" style="padding-top:42px;">
				欢迎，
				<c:choose>
					<c:when test="${sessionScope.user!=null}">
						${sessionScope.user.userName}，
						<a href="exit">退出</a>
					</c:when>
					<c:otherwise>
						<a href="loginForm">登录</a>
					</c:otherwise>
				</c:choose>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<ul class="nav">
					<li>
						
					</li>
				</ul>
			</div>
		</div>
		<div class="row">
			<table id="table"></table>
		</div>
	</div>
	
	<script type="text/javascript" src="/bookstore/static/js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="/bookstore/static/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="/bookstore/static/js/bootstrap-table.min.js"></script>
	<script type="text/javascript" src="/bookstore/static/js/bootstrap-table-zh-CN.min.js"></script>
	<script type="text/javascript" src="/bookstore/static/js/user.js"></script>
</body>
</html>